package com.sc.springboot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author romeo
 * @since 2025-09-22 02:30:52
 */
@Getter
@Setter
@TableName("notification")
public class Notification {

    @TableId(value = "noti_id", type = IdType.AUTO)
    private Integer notiId;

    @TableField("user_id")
    private Integer userId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 推送时间
     */
    @TableField("noti_time")
    private Date notiTime;

    /**
     * 是否已读
     */
    @TableField("is_read")
    private Boolean isRead;

    // 通知类型
    @TableField("noti_type_id")
    private Integer notiTypeId;

    //状态
    @TableField("status")
    private Integer status;

    // 通知类型名称,该字段不存在
    @TableField(exist = false)
    private NotiType type;

}
